package com.TeacherInfoServer.common.service;

import com.TeacherInfoServer.common.Result;
import com.TeacherInfoServer.pojo.DTO.AddTitleHistoryDTO;
import com.TeacherInfoServer.pojo.DTO.SearchDTO.TitleHistorySearchDTO;
import com.TeacherInfoServer.pojo.DTO.UpdateTitleHistoryDTO;
import com.TeacherInfoServer.pojo.entity.TitleHistory;
import com.TeacherInfoServer.pojo.vo.TitleHistoryListVo;
import com.baomidou.mybatisplus.extension.service.IService;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;
import java.util.Map;

public interface TitleHistoryService extends IService<TitleHistory> {
    Result<Map<String, Integer>> addOne(AddTitleHistoryDTO addTitleHistoryDTO);
    Result<TitleHistoryListVo> getList(Long pageNumber, Long pageSize);

    Map<String,Object> searchTitleHistoryList(TitleHistorySearchDTO titleHistorySearchDTO);

    Result<TitleHistoryListVo> getOneList(Long pageNumber, Long pageSize , String teacherId);
    void export(HttpServletResponse response, String fileName) throws IOException;
    Result<Map<String, Integer>> deleteBatch(Integer[] ids);
    Result<Map<String, Integer>> updateOne(UpdateTitleHistoryDTO updateTitleHistoryDTO);
}
